#ifndef IOCTLDISC_H
#define IOCTLDISC_H

#ifdef __LINUX__

#include "../Disc.h"

class CIoCtlDisc : public CDisc
{
public:
  CIoCtlDisc(const char *device = "/dev/cdrom");
  virtual ~CIoCtlDisc();

  virtual unsigned GetTrackCount() const;
  virtual unsigned long GetStartFrame(unsigned track) const;
  virtual unsigned long GetFrames(unsigned track) const;

private:
  struct cdrom_tocentry *m_pToc;
  unsigned m_track_count;
};

typedef CIoCtlDisc COSDisc;

#endif	// __LINUX__

#endif // IOCTLDISC_H
